<template>
    <div class="preview-file">
        <a-image :width="50" :src="noFile" />
        <div class="right">
            <div class="title">名xxxx称.json</div>
            <div class="size">大小kb</div>
        </div>
    </div>
</template>

<script setup lang="ts">
import noFile from "@/assets/image/no_file.png";
const {value} = defineProps({
    value: [],
});
</script>

<style scoped lang="less">
.preview-file {
    width: max-content;
    display: flex;
    padding: 8px;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    .right {
        margin-left: 4px;
        padding: 4px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .size {
            font-size: 12px;
            color: #a1a7b7;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }
}
</style>
